<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
      // wx.cloud.init()
      var that = this
      // 判断当前是线上还是测试
      const accountInfo = wx.getAccountInfoSync();
      if (accountInfo.miniProgram.envVersion == 'release') {
        // 如果是线上正式版本
        that.globalData.release = true
        that.globalData.url = 'https://www.hlbgame.top'
      } else {
        //非线上 开发或体验版本
        that.globalData.release = false
        that.globalData.url = 'https://www.hlbgame.top'
        // that.globalData.url = 'http://192.168.1.6:9000'
      }
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
